/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.ejb.controlador;

import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
import org.ejb.persistencia.Administrador;
import org.ejb.persistencia.Usuarios;

/**
 *
 * @author MoisesAntonio
 */
@Named
@RequestScoped
public class Credenciales {

    private String username;

    private String password;
    
    private TipoUsuario tipo;
    
    private Usuarios user;
    
    private Administrador admin;

    public String getUsername() { return username; }

    public void setUsername(String username) { this.username = username; }

    public String getPassword() { return password; }

    public void setPassword(String password) { this.password = password; }
    
    public TipoUsuario getTipo(){ return tipo; }
    
    public void setTipo(TipoUsuario t){ this.tipo=t; }
    
    public void setUser(Usuarios user){ this.user=user; }
    
    public Usuarios getUser(){ return user; }
    
    public void setAdmin(Administrador admin){ this.admin=admin; }
    
    public Administrador getAdmin(){ return admin; }
    
}
